'''
Created on 3 Dec 2012

@author: quirino.brizi
'''
from .imports import pycurl

class Options(object):
    """
    Connection configuration options to be used to populate the request message
    """
    ALLOWREDIRECT, MAXREDIRS, CONNECTTIMEOUT, TIMEOUT,\
    ENCODING, DEBUGFUNCTION, HEADERFUNCTION,\
    BODYFUNCTION, VERBOSE, SSL_VERIFYHOST, SSL_VERIFYPEER = (
                pycurl.FOLLOWLOCATION, pycurl.MAXREDIRS, 
                pycurl.CONNECTTIMEOUT, pycurl.TIMEOUT, 
                pycurl.ENCODING, pycurl.DEBUGFUNCTION, 
                pycurl.HEADERFUNCTION, pycurl.WRITEFUNCTION, 
                pycurl.VERBOSE, pycurl.SSL_VERIFYHOST, 
                pycurl.SSL_VERIFYPEER
            )

class Method(object):
    """
    Defines the acceptable request methods
    """
    GET, POST, PUT, HEAD, DELETE, OPTION = (
            pycurl.HTTPGET, pycurl.POST, pycurl.PUT, pycurl.NOBODY, 
            pycurl.NOBODY, pycurl.NOBODY
        )